<template>
  <div class="header">
    {{ news?.title }}
  </div>
  <div v-html="news?.content"/>
</template>

<script setup lang="ts">
import { useApi } from "~/composeables";

const api = useApi();
const route = useRoute();
const news = ref<any>();
const newsReps = await api.informationApi.getById(route.params.id);
news.value = newsReps.data;
</script>